package com.woniuxy.dudugua.controller;

import com.woniuxy.dudugua.service.impl.ProductInfoServiceImpl;
import com.woniuxy.dudugua.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("productInfo")
public class ProductInfoController {
    @Resource
    private ProductInfoServiceImpl productInfoServiceImpl;

    @RequestMapping("selectById")
    public Result selectById(Integer id) {
        return new Result("200", "success", productInfoServiceImpl.selectById(id), null);
    }

}